import requests
resp = requests.get("http://4.ipw.cn",verify=False)
print(resp.text)

# 



# 使用 127.0.0.1:18889 代理的请求
proxies = {
    'http': 'http://127.0.0.1:18889',
    'https': 'http://127.0.0.1:18889'
}

resp = requests.get("http://4.ipw.cn", proxies=proxies, verify=False)
print(resp.text)